package com.register.service;

import com.register.dao.DoctorDao;
import com.register.pojo.Doctor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service("doctorService")
public class DoctorService {

    @Autowired
    private DoctorDao doctorDao;

    public List<Doctor> getDoctor(Doctor doctor){
        return doctorDao.getDoctor(doctor);
    }
}
